﻿
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="entity.tUser"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	tUser tuser = (tUser) session.getAttribute("user");
%>
<div class="sidebar">
	<div class="gadget">
		<h2 class="star">
			<span >设&nbsp;&nbsp;备</span>
		</h2>
		<div class="clr"></div>
		<ul class="sb_menu">
			<li class="active">
				<a href="getAlltDeviceToIndexAction">首页</a>
			</li>
			<li>
				<a href="getAlltDeviceAction">设备显示</a>
			</li>
			<s:if test="#session.user.grade == 2 || #session.user.grade == 1">
				<li>
					<a href="toAdd">设备添加</a>
				</li>
			</s:if>
			<li>
				<a href="deviceQuery.jsp">设备搜索</a>
			</li>
			<li></li>
		</ul>
	</div>
	<div class="gadget">
		<h2 class="star">
			<a href="personl.jsp"><span>个人信息</span>
			</a>
		</h2>
		<div class="clr"></div>
		<ul class="ex_menu">
			<li class="active">
				<a href="personl.jsp"
					style="color: #0b5890; display: block; word-break: break-all;">用户名：${sessionScope.user.userName}</a>
			</li>
			<li>
				<span style="word-break: break-all;">姓名：${sessionScope.user.trueName}</span>
			</li>
			<li>
				<span>级别： <s:if test="#session.user.grade == 2">
          		管理员
          </s:if> <s:if test="#session.user.grade == 1">
          		区域代理
          </s:if> <s:if test="#session.user.grade == 0">
          		客户
          </s:if> </span>
			</li>
			<li>
				<span style="word-break: break-all;">邮箱：${sessionScope.user.email}</span>
			</li>
			<li>
				<span>手机：${sessionScope.user.mobilePhone}</span>
			</li>
			<li>
				<span>电话：${sessionScope.user.phone}</span>
			</li>
			<li style="background-image: none;"></li>
		</ul>
	</div>
	<div class="gadget_bottom">
		<div class="clr"></div>
		<ul>
			<li class="lx">
				联系方式
			</li>
			<li class="bott">
				(86)592-5733587
			</li>
			<li>
				<img src="images/left_dian.png" />
				&nbsp;公司：厦门绿信环保科技有限公司
			</li>
			<li>
				<img src="images/left_dian.png" />
				&nbsp;地址：厦门火炬高新区创业园大厦
			</li>
			<li>
				<img src="images/left_dian.png" />
				&nbsp;传真：(86)592-5730267
			</li>
		</ul>
	</div>
</div>

